home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / AMOSList / AMOSLIST / text0079.txt < prev    next >
Encoding:
Text File  |  1998-04-01  |  529 b   |  28 lines

  1. Here my problem.  short example
  2.  
  3. --text.txt look like this--
  4. 5
  5. 8
  6. --end text
  7.  
  8. r$="text.txt"
  9. open in 1,r$ : a=lof(1) : close 1
  10. reserve as work 16,a
  11. bload r$,16
  12. abc=start(16)
  13. c1=peek(abc) : inc abc : c2=peek(abc)
  14. print c1         : rem gives the ascii value
  15. print chr$       : show numer 5
  16.  
  17. Ok how will do to make amos to understand that i want to threat this
  18. as a number instead of an ascii value?
  19.  
  20. Is there anyway to convert that 5 (53) so 
  21. i can use it like this
  22.  
  23. tal=c1+c2 
  24. print tal      : want it to be 13
  25.  
  26. please help me...
  27.  
  28.